package entx

import (
	"rdbmsx/config"
	"rdbmsx/entx/ent_modelx"

	"entgo.io/ent/dialect"
	_ "github.com/go-sql-driver/mysql"
	_ "github.com/lib/pq"
)

func GetEngine() *ent_modelx.Client {
	open, err := ent_modelx.Open(dialect.Postgres, config.PostgresDSN)
	if err != nil {
		panic(err)
	}
	return open
}
